<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Learn - Seajs - 简单实践</title>

  <!-- 用于加载 README.md -->
  <script src="./src/lib/jquery.min.js"></script>
  <script src="./src/lib/marked.umd.js"></script>

</head>
<body>
  <div class="content">
    <div class="html">
      <h1>学习 - Seajs</h1>
      <br>
      <br>
      <article class="auth">auth: srxboys</article>
    </div>

    <hr>

    <div id='md'></div>
  </div>
</body>

<!-- 加载 md -->
<script type="text/javascript">
  $(function(){
    let res = null;
    $.ajax({
        url: 'README.md',
        dataType: 'text',
        success: function(data) {
          document.getElementById('md').innerHTML = marked.parse(data)
        }
    });
  });
</script>

<!-- 使用 seajs -->
<script src="./sea.js"></script>
<script src="./src/lib/seajs-css.js"></script>
<script>
  // 加载时间，是为了不让 服务器缓存 css，每次拿取最新的
  const time = new Date().getTime() + ''
  seajs.config({
    map: [
      ['time', time]
    ]
  })

  seajs.use(['src/css/style.css?time', 'src/main'])
</script>
</html>